﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Web_rongmeiti_sys.PublishToRongMeiTi
{
    /// <summary>
    /// 分页，文章列表
    /// </summary>
    /// 创建时间：2023-7-31 11:38:18，作者：王浩力
    public struct ResultGetPage
    {
        public int code { get; set; }
        public string message { get; set; }
        public ResultView result { get; set; }
    }

    /// <summary>
    /// 融媒体返回数据 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// 创建时间：2023-8-8 14:52:52，作者：王浩力
    public class ResultRmt<T> where T : notnull
    {
        public int code { get; set; }
        public string message { get; set; }
        public T result { get; set; }
    }

    public struct ResultView
    {
        public List<PageItemInfo> listEntity { get; set; }
        public int? rowsCount { get; set; }
    }

    /// <summary>
    /// 分页返回数据
    /// </summary>
    public struct PageItemInfo
    {
        public bool? canILinkSend { get; set; }
        public DateTime? createTime { get; set; }
        public string createrCode { get; set; }

        /// <summary>
        /// 发布人姓名
        /// </summary>
        public string createrName { get; set; }

        /// <summary>
        /// 文章标题
        /// </summary>
        public string headTitle { get; set; }
        public string id { get; set; }
        public byte? newsStatus { get; set; }

        public byte? newsType { get; set; }
        public long? orderIndex { get; set; }

        /// <summary>
        /// 融媒体的可访问url
        /// </summary>
        public string pageUrl { get; set; }

        public DateTime? publishingDate { get; set; }
        public DateTime? publishingStartDate { get; set; }

    }

}
